﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.Web.coffinegurunaru.AppLogic;

namespace Com.Web.coffinegurunaru.test
{
	public partial class geotegtest : System.Web.UI.Page
	{
		protected List<NaverAPIPointInfo> Points { get; set; }
		protected void Page_Load(object sender, EventArgs e)
		{
			string xmlString = "<?xml version=\"1.0\" encoding=\"euc-kr\" ?><geocode xmlns=\"naver:openapi\"><userquery><![CDATA[경기도성남시정자1동25-1]]></userquery><total>1</total>        <item>            <point>                <x>321036</x>                <y>529727</y>            </point>            <address><![CDATA[경기도 성남시분당구 정자1동 25-1]]></address>            <addrdetail>                <sido><![CDATA[경기도  ]]>                    <sigugun><![CDATA[성남시 분당구  ]]>                        <dongmyun><![CDATA[정자1동 ]]>                                            <rest><![CDATA[25-1 ]]></rest>                        </dongmyun>                    </sigugun>                </sido>            </addrdetail>        </item>        <item>            <point>                <x>238983</x>                <y>393498</y>            </point>            <address><![CDATA[경기도 성남시분당구 정자1동 25-2]]></address>            <addrdetail>                <sido><![CDATA[경기도  ]]>                    <sigugun><![CDATA[성남시 분당구  ]]>                        <dongmyun><![CDATA[정자1동 ]]>                                            <rest><![CDATA[25-2 ]]></rest>                        </dongmyun>                    </sigugun>                </sido>            </addrdetail>        </item>        <item>            <point>                <x>328989</x>                <y>789123</y>            </point>            <address><![CDATA[경기도 성남시분당구 정자1동 25-3]]></address>            <addrdetail>                <sido><![CDATA[경기도  ]]>                    <sigugun><![CDATA[성남시 분당구  ]]>                        <dongmyun><![CDATA[정자1동 ]]>                                            <rest><![CDATA[25-3 ]]></rest>                        </dongmyun>                    </sigugun>                </sido>            </addrdetail>        </item>        </geocode>";

			Points = NaverAPI.ParseGEOCode(xmlString);
		}
	}
}
